package com.clwl.supervise.superviseapp.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;


@Component
@ConfigurationProperties(prefix = "thread.pool")
@Data
public class ThreadPoolProperties {
    private Integer corePoolSize;//核心线程池数
    private Integer maximumPoolSize;//最大线程数
    private Integer keepAliveTime;//秒
    private Integer queue;//允许排队的队列数，程序阻塞数
}